import { Component, OnInit } from '@angular/core';
import { ProductData } from './data';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.scss'],
  providers:[ProductData]
})
export class HomeComponent implements OnInit {
  productLists: any;
  constructor(
    private _productData:ProductData
  ) { }

  ngOnInit() {
    this.productLists=this._productData.getData();
  }

}
